﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/ConsumerMaster.master" CodeFile="index.aspx.cs" Inherits="index" %>
<%@ MasterType VirtualPath="~/MasterPages/ConsumerMaster.master" %>

<asp:Content ID="Content" ContentPlaceHolderID="Consumer_ContentPlaceHolder" Runat="Server">
<asp:DataList Id="district_datalist" DataKeyField="Id" runat="server" RepeatDirection="Vertical" Width="100%" BorderWidth="2px" CellSpacing="10">
<ItemTemplate>
    <table width="100%">
        <tr><th style="font-size:large"><asp:HyperLink ID="district_hyperlink" runat="server" Text='<%#Eval("Name")%>'
            NavigateUrl='<%#"~/public/district-id="+Eval("Id")+".aspx"%>'/></th>
        </tr>
        
        <tr><th>
        <asp:DataList Id="restaurant_datalist" runat="server" DataSource='<%# Eval("RestaurantsOfDistrict")%>' RepeatDirection="Vertical" Width="100%"
             CellSpacing="8" >
        <ItemTemplate>
        <div class="itemtemplate">
        <div style="width:80%; float:left">
        <table>
        <tr><th style="width:50%"><asp:HyperLink ID="restaurant_hyperlink" runat="server" Text='<%#Eval("Name")%>'
            NavigateUrl='<%#"~/public/restaurant-restaurant_id="+Eval("Id")+".aspx"%>'/> </th>
        <th style="font-weight:normal"><%# Eval("Advertise") %></th></tr>
        
        
        <tr><th style="font-style:italic; font-stretch:wider; font-size:larger; color:Green; width:250px"><%#Eval("Tel") %> <%#Eval("Mobile") %></th>    
        <th style="font-weight:normal"><%#Eval("AddressDescription") %></th></tr>
        
        <tr style="font-weight:normal; color:Gray"><th><%#Eval("DeliveryDescription") %></th>
        <th><%#Eval("Begin") %> => <%#Eval("End") %></th></tr>
        </table>
        </div>
        
        <div class="comment" style="width:20%">
        <asp:HyperLink ID="comment_summary_hyperlink" runat="server" ToolTip="好|中|差" 
        NavigateUrl='<%#"~/public/restaurant-restaurant_id="+Eval("Id")+"-score_id="+Eval("ScoreId")+".aspx"%>'>&#91;
        <span class="good_span"><%#Eval("ScoreGood")%></span>&#124;<span class="middle_span"><%#Eval("ScoreMiddle")%></span>&#124;<span class="bad_span"><%#Eval("ScoreBad")%></span>
        &#93;</asp:HyperLink>
        <input type="button" title="好|中|差-快评" value="评" class="comment"/>
        <div class="comment_action">
        <input type="radio" name="level_group" value="1" />好
        <input type="radio" name="level_group" value="2" />中
        <input type="radio" name="level_group" value="3" />差
        <input type="text" style="width:auto;" class="comment_text" />
        </div>
        </div>
        
        </div>
        </ItemTemplate>
        </asp:DataList>
        </th></tr>
    </table>
</ItemTemplate>
</asp:DataList>
</asp:Content>

